new Vue({
    el: '#app',
    data() {
        return {
            html: '',
            options: [{
                value: 0,
                label: '协议管理'
                // }, {
                //     value: 1,
                //     label: '行情描述'
                // }, {
                //     value: 2,
                //     label: '国内资讯'
                // }, {
                //     value: 3,
                //     label: '国际资讯'
                // }, {
                //     value: 4,
                //     label: '公司动态'
                //
            }
            ],
            form: {
                User_Agreement_SerialNumber: "",
                User_Agreement_Title: '',
                User_Agreement_Main: "",
                Enterprise_Info_SerialNumber: $.cookie("enterprise"),
            }
        }
    },
    mounted() {
        let User_Agreement_SerialNumber = window.sessionStorage.getItem('User_Agreement_SerialNumber')
        this.SeeDetail(User_Agreement_SerialNumber)
        this.getNews()
    },
    methods: {
        SeeDetail(User_Agreement_SerialNumber) {
            console.log(1);
            const _this = this
            let data = {
                Primary_Key_Name: 'User_Agreement_SerialNumber',
                Primary_Key: User_Agreement_SerialNumber,
                Data: 'user_agreement',
            }
            $.ajax({
                url: DomainName + '/getInquiryIDAction?token=' + $.cookie("token"),
                type: 'POST',
                data,
                success: function (res) {
                    // console.log(res);
                    _this.form = res[0];
                    _this.html = res[0].User_Agreement_Main
                    // this,html = res[0].
                    console.log(_this.form);
                },
                complete: function (XMLHttpRequest) {
                    _this.loading = false
                    if (XMLHttpRequest.getResponseHeader("REDIRECT") == "REDIRECT") {
                        window.parent.document.location.href = "../../../" + XMLHttpRequest.getResponseHeader("CONTENTPATH");
                    }
                }
            })
        },
        back() {
            window.history.go(-1)
        },
    },
})